RUN THE ESTIMATION AND COUNTERFACTUAL SIMULATION ROUTINES 

FROM THE PAPER:
Child Care Markets, Parental Labor Supply, and Child Development

BY:
Samuel Berlinski, Maria Marta Ferreyra, Luca Flabbi and Juan David Martin

*****************************************************************************************************
ROUTINE SCRIPTS

The folder should include the following scripts:

- 01_Estimate:           estimates the model parameters.

- 02_CFs:                simulates equilibria for the counterfactual experiments defined in the paper

*****************************************************************************************************
FUNTION SCRIPTS

The folder should include the following function scripts:

- simul_market:      simulates the market equilibrium for a given policy setup and a given 
                     parameter vector.

- simul_market_PP:   simulates the market equilibrium for the public provision policy setup and a  
                     Given parameter vector.

- functions:         toolbox of different functions that assist in the simulation of market 
                     equilibria and parameter estimation.

*****************************************************************************************************
INPUTS AND SOURCES

The folder should include:

- AggregateMoments.xlsx: the sample moments used in the SMM estimation procedure.

- SimData_M0.RData: the simulated ex ante heterogeneity based on the data 

It may also include:

- Estimates_01.RData: the estimated model parameters, generated by the 01_Estimate.R routine


*****************************************************************************************************
STARTING POINT

Start by updating line

folderpath <- '~/EstimationCode/'

from the "START" sections in the scripts:

01_Estimate
02_CFs

where the single-quoted text should be replaced by the desired folder path in your computer.


*****************************************************************************************************
ESTIMATION

Run 01_Estimate to generate a new vector of parameter estimates, to be called Estimates_01.RData or any other name

*****************************************************************************************************
COUNTERFACTUALS

Run 02_CFs to generate counterfactual experiments.

If the name of the parameter estimates has been change then update the line 

"load('Estimates_01.RData')"

from the "INPUT" section, where the single-quoted text should be replaced by the desired name of the 
new file of estimated parameters.

*****************************************************************************************************
END